FROM alpine:latest
USER root
WORKDIR /openvpn

ADD certs/* /openvpn/certs/
ADD entrypoint.sh /openvpn
RUN chmod +x entrypoint.sh

RUN apk add openvpn iptables procps

ENTRYPOINT ["/bin/sh", "entrypoint.sh"]